public class PathVarible {

    @GetMapping("/users/{id}")
    public String getUserById(@PathVariable Long id) {
        // 根据用户 ID 进行逻辑处理
        return "User details for ID: " + id;
    }
}